﻿@{
    ViewBag.Title = "JsDemo测试";
	Layout = null;
}

<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>@ViewBag.Title</title>
	<link href="~/css/jqueryui/base/jquery-ui.css" rel="stylesheet" />
	<link href="~/css/busier/busier.css" rel="stylesheet" />
	<link href="~/css/core.css" rel="stylesheet" />
	<link href="~/css/main.css" rel="stylesheet" />

	<script src="~/js/jquery/jquery-1.7.1.min.js"></script>
	<script src="~/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
	<script src="~/js/jquery/jquery.validate.min.js"></script>
	<script src="~/js/jquery/jquery.validate.unobtrusive.min.js"></script>
	<script src="~/js/_gen/mvcsolution.core.js"></script>
</head>
	<body>
		<h1>Index</h1>		
		<input id="btnArray" type="button" value="数组求和" />

	</body>	  
</html>		 
<script type="text/javascript">
	mvcsolution.documentReady = btnArrayBind();

	function btnArrayBind() {
		$("#btnArray").click(function () {
			testArray();
		});
	}
	function testArray() {
		var array1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
		var total = array1.sum(funcNumber);
		mvcsolution.notification.alert("求和", total, closeArray, 200, 200);
	}

	function closeArray() {
		
	}

	function funcNumber() {
		return this;
	}


</script>
